local logging = require("logging");
local logging_console = require("logging.console");
local logging_file = require("logging.file");

local defaul_log_filepath = LuaGui.GetLogFilePath();

local logger = logging_file({
    filename = defaul_log_filepath,
    logPattern = "[%level]%message\n",
    timestampPattern  = "%Y-%m-%d %H:%M:%S",
});

logging.defaultLogger(logger);

commonlib.logging = logging;
commonlib.logger = logger;

return logger;